using UnityEngine;
using UnityEngine.UI;

public class EffectAddCoin : MonoBehaviour
{
	public static EffectAddCoin Instance;

	public PanelAnimator anim;

	public Text textCoin;

	private void Awake()
	{
		if (Instance == null)
		{
			Instance = this;
		}
	}

	public void showCoin(int coin)
	{
		textCoin.text = "+ " + coin;
		anim.gameObject.SetActive(value: true);
		anim.show();
	}
}
